<?php
class Content extends AppModel {
	var $name = 'Content';
	
	var $primaryKey  = 'id';
	
	var $useTable = "contents";
	
	function loadJoin(){
		$this->bindModel(
			 array(
			 	'belongsTo' => array (
					'PageKind' => array(
						'className' => 'PageKind',
						'foreignKey' => 'kind',
			 			'fields' => array('PageKind.name')
					)
				)
			), 
			false
		);
	}
	
}

?>